package com.westvalley.ctrl;

import com.jfinal.core.Controller;
import com.jfinal.ext.annotation.ControllerBind;
import com.westvalley.service.api.nc.BudgetExceedService;
import com.westvalley.service.api.nc.HistoryLoanService;

@ControllerBind(route="NcApi")
public class NcApiCtrl extends Controller{
	
	/**
	 * 获取人员历史借款
	 */
	public void getHistoryLoan(){
		renderJson(HistoryLoanService.me(this).getJsonResult());
	}
	
	/**
	 * 是否超出预算
	 */
	public void getBudgetExceed(){
		renderJson(BudgetExceedService.me(this).getJsonResult());
	}
}
